// This file is required by the index.html file and will
// be executed in the renderer process for that window.
// No Node.js APIs are available in this process because
// `nodeIntegration` is turned off. Use `preload.js` to
// selectively enable features needed in the rendering
// process.

/** 获取摄像头流*/
//getUserMedia能用 (和浏览器没撒区别貌似）
//getDisplayMedia的↓这么用会报 Uncaught (in promise) DOMException: Requested device not found （只是在electron中有问题 普通浏览器中是没毛病的）
/*
window.navigator.mediaDevices./!*getUserMedia*!/getDisplayMedia({
  video:true,
  audio:false
})
.then((stream)=>{
  player.srcObject = stream;
})
*/

/** 获取桌面流*/
window.electron.getDisplayMediaAndSet()
